package com.bing.e713;

public class Run {

	/*
	 * NEW,
	 * RUNNABLE,
	 * TERMINATED
	 * BLOCKED,
	 * WAITING,
	 * TIMED_WAITING,
	 */
	public static void main(String[] args) {
        //等待锁的状态的是BLOCKED
		try {
			ThreadA a=new ThreadA();
			a.setName("a");
			a.start();
			
			ThreadB b=new ThreadB();
			b.setName("b");
			b.start();
			Thread.sleep(1000);
			System.out.println("main方法中 ThreadB的状态： "+b.getState());

		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
